//
//  UIButton+Extension.h
//  CFFinanceProject
//
//  Created by chunfeng on 2018/4/9.
//  Copyright © 2018年 xiaowen. All rights reserved.
//

#import <UIKit/UIKit.h>


typedef enum {
    YPButtonEdgeInsetsStyleImageAtLeft,//图左文右
    YPButtonEdgeInsetsStyleImageAtRight,//图右文左
    YPButtonEdgeInsetsStyleImageAtTop,//图上文下
    YPButtonEdgeInsetsStyleImageAtBottom,//图下文上
}YPButtonEdgeInsetsStyle;


typedef void (^LKLUIButtonClickBlock)(UIButton *button);

@interface UIButton (Extension)

/**
 *  按钮标题
 */
@property(nonatomic, strong)NSString *lkl_title;

/**
 *  按钮选中标题
 */
@property(nonatomic, strong)NSString *lkl_select_title;

/**
 *  标题颜色
 */
@property(nonatomic, strong)UIColor *lkl_titleColor;

/**
 *  标题颜色
 */
@property(nonatomic, strong)UIColor *lkl_select_titleColor;

/**
 *  标题字体
 */
@property(nonatomic, strong)UIFont *lkl_font;

/**
 *  按钮背景-以图片的形式
 */
@property(nonatomic, strong)UIColor *lkl_backgroundColor;

/**
 *  按钮图片的形式
 */
@property(nonatomic, strong)UIImage *lkl_image;

/**
 *  按钮选中图片的形式
 */
@property(nonatomic, strong)UIImage *lkl_select_image;





/**
 *  block添加点击事件
 */
- (void)lkl_addClickBlock: (LKLUIButtonClickBlock) block;

/**
 *  设置按钮内部图文相对位置
 */
- (void)lkl_layoutButtonWithEdgeInsetsStyle:(YPButtonEdgeInsetsStyle)style
                            imageTitleSpace:(CGFloat)space;

@end
